import about from "../components/About"
import home from "../components/Home"
import news from "../components/News"
import message from "../components/Message"
const routes = [
  // {path:"/home/news",component:news},
  {path:"/about",component:about},
  {
    path:"/home",
    component:home,
    children:[
      //子路由的path不能使用"/"开头
      {path:"news",component:news},
      {path:"message",component:message},
      {path:"",redirect:"news"}
    ]
  },
  {path:"/",redirect:"/about"}
]

export default routes
